import { HTTP } from '../utils/httpRequestUtil'
import URL from './api'
export default {
  sheMeetingLoadByPaging (params, cb) {
    HTTP.post(URL.sheMeetingLoadByPaging, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sheMeetingSave (params, cb) {
    HTTP.post(URL.sheMeetingSave, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sheMeetingGet (params, cb) {
    HTTP.post(URL.sheMeetingGet, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sheMeetingDel (params, cb) {
    HTTP.post(URL.sheMeetingDel, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sheCheckOptionsConfigLoadMenu (params, cb) {
    HTTP.post(URL.sheCheckOptionsConfigLoadMenu, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sheCheckOptionsConfigSave (params, cb) {
    HTTP.post(URL.sheCheckOptionsConfigSave, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sheCheckOptionsConfigDel (params, cb) {
    HTTP.post(URL.sheCheckOptionsConfigDel, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sheCheckOptionsConfigInspection (params, cb) {
    HTTP.post(URL.sheCheckOptionsConfigInspection, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  },
  sheUploadFile (params, cb) {
    HTTP.post(URL.sheUploadFile, params).then(function (response) {
      cb(response.data)
    }).catch(function (error) {
      cb(error.response)
    })
  }
}
